<template>
<div class="content">
    <mt-header fixed title="业主单位详情">
              <div slot="left">
    <mt-button icon="back" @click.native="goback()">返回</mt-button>
              </div>
    </mt-header>
    <mt-cell title="业主单位公司名称" :value="result.commanyname" v-show="result.commanyname"></mt-cell>
    <mt-cell title="公司地址" :value="result.companyaddress" v-show="result.companyaddress"></mt-cell>
    <mt-cell title="公司网站" :value="result.web" v-show="result.web"></mt-cell>
    <mt-cell title="联系人" :value="result.contactname" v-show="result.contactname"></mt-cell>
    <mt-cell title="联系电话" :value="result.commanyphone" v-show="result.commanyphone"></mt-cell>
    <mt-cell title="法人名称" :value="result.owner" v-show="result.owner"></mt-cell>
    <mt-cell title="法人电话" :value="result.phone" v-show="result.phone"></mt-cell>
    </div>
</template>
<script>
export default {
  data () {
    return {
      result: {}
    }
  },
  created () {
    this.getdevicedetail()
  },
  methods: {
    async getdevicedetail () {
      const res = await this.$store.dispatch('proprietordetails', {
        proprietor: this.$route.query.proprietor
      })
      if (res.status === '0') {
        this.result = res.context
      }
    },
    goback () {
      this.$router.go(-1)
    }
  }

}
</script>
<style lang="less" scoped>
.content{
    padding-top: 40px;
}

</style>
